#!/bin/bash

if [ "x$*" == "x" ];then
  echo "Missing command !!!"
  exit 1
fi

NODES=`cat PROOF_nodes.txt | grep -v '#'`

for NODE in $NODES; do
  echo "=========  Running on $NODE cmd '$*' ============="
  ssh $NODE $*
done